package com.adprof.demo.natives.viewholders;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.adprof.demo.android.R;

/**
 * 图片内容ViewHolder - 用于展示图片内容
 * 同时支持RecyclerView和ListView
 */
public class ImageViewHolder extends RecyclerView.ViewHolder {
    public ImageView contentImage;
    public TextView avatarText, authorText, authorDesc, followBtn, timeText;
    public TextView titleText, descText;
    public TextView likeCount, commentCount, shareBtn;

    public ImageViewHolder(View itemView) {
        super(itemView);
        contentImage = itemView.findViewById(R.id.content_image);
        avatarText = itemView.findViewById(R.id.avatar_text);
        authorText = itemView.findViewById(R.id.author_text);
        authorDesc = itemView.findViewById(R.id.author_desc);
        followBtn = itemView.findViewById(R.id.follow_btn);
        timeText = itemView.findViewById(R.id.time_text);
        titleText = itemView.findViewById(R.id.title_text);
        descText = itemView.findViewById(R.id.desc_text);
        likeCount = itemView.findViewById(R.id.like_count);
        commentCount = itemView.findViewById(R.id.comment_count);
        shareBtn = itemView.findViewById(R.id.share_btn);
    }
}
